{#**
*
* 功能描述（信息模板）
*
* @author suoya <jlusuoya@gmail.com>
* @version 1
*#}
{#include file="header.tpl" title="title" active="cake" #}
{#include file="define.tpl" scope=parent#}
<div class="content middle">
    <div class="ui breadcrumb">
        <a class="section" href="index.php">主页</a>
        <i class="right"></i>
        <a class="section" href="index.php?action=cake.showlist">产品管理</a>
        <i class="right"></i>
        <span class="active section">产品信息</span>
    </div>
    <table>
        <tr>
            <td width="497px" height="497px" style="min-height: 497px;">
                <img width="497" height="497" src="{#$web_root['web']#}data/cake/cake_{#$data['id']#}.jpg" alt="蛋糕图片"/>
            </td>
            <td valign="top" colspan="2">
                <div class="infoDIV">
                    <label class="title">产品编号：</label>
                    <label>{#$data['no']#}</label>
                </div>
                <div class="infoDIV">
                    <label class="title">产品名称：</label>
                    <label>{#$data['name']#}</label>
                </div>
                <div class="infoDIV">
                    <label class="title">所属类别：</label>
                    <label>{#$cake_type[$data['type']]#}</label>
                </div>
                <div class="infoDIV">
                    <label class="title">特殊属性：</label>
                    <label>{#$cake_type2[$data['type2']]#}</label>
                </div>
                <div class="infoDIV">
                    <label class="title">折扣：</label>
                    <label>{#$data['discount']*10#}折</label>
                </div>
                <div class="infoDIV">
                    <label class="title">版本：</label>
                    <label>{#$data['version']#}</label>
                </div>
                <div class="infoDIV">
                    <label class="title">添加日期：</label>
                    <label>{#$data['createtime']|date_format:"%Y-%m-%d"#}</label>
                </div>
                <div class="infoDIV">
                    <label class="title">最近修改日期：</label>
                    <label>{#$data['updatetime']|date_format:"%Y-%m-%d"#}</label>
                </div>
                <div class="infoDIV">
                    <label class="title" style="vertical-align: top;">产品介绍：</label>
                    <div style="display: inline-block; width: 345px;">{#$data['introduce'][0]#}<br />{#$data['introduce'][1]#}</div>
                </div>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <div class="infoDIV">
                    <label class="title">口味：</label>
                    <label>{#$info['taste']#}</label>
                </div>
                <div class="infoDIV">
                    <label class="title">适合人群：</label>
                    <label>{#$info['suits']#}</label>
                </div>
                <div class="infoDIV">
                    <label class="title">甜度：</label>
                    <label>{#$info['sweetness']#}</label>
                </div>
                <div class="infoDIV">
                    <label class="title">保存方式：</label>
                    <label>{#$info['storage']#}</label>
                </div>
                <div class="infoDIV">
                    <label class="title">适合节日：</label>
                    <label>{#$info['holiday']#}</label>
                </div>
                <div class="infoDIV">
                    <label class="title" style="vertical-align: top;">原材料：</label>
                    <div style="display: inline-block; width: 400px;">{#$info['material']#}</div>
                </div>
            </td>
            <td widht="250px" style="min-height: 405px;">
                <img width="250" height="405" src="{#$web_root['web']#}data/cake/cake_{#$data['id']#}_1.jpg" alt="营养图片" />
            </td>
            <td valign="top">
                <div class="infoDIV">
                    <label class="title" style="vertical-align: top; text-align: left;">营养成分：</label>
                    <label>每100g含</label>
                    <div style="display: inline-block; padding-left: 30px;">
                        <div class="inputDIV">
                            <label class="subTitle">能量：</label>
                            <label>{#$info['attr1']#}千焦</label>
                        </div>
                        <div class="inputDIV">
                            <label class="subTitle">蛋白质：</label>
                            <label>{#$info['attr2']#}克</label>
                        </div>
                        <div class="inputDIV">
                            <label class="subTitle">脂肪：</label>
                            <label>{#$info['attr3']#}克</label>
                        </div>
                        <div class="inputDIV">
                            <label class="subTitle">碳水化合物：</label>
                            <label>{#$info['attr4']#}克</label>
                        </div>
                        <div class="inputDIV">
                            <label class="subTitle">钠：</label>
                            <label>{#$info['attr5']#}毫克</label>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    <div class="button_bar">
        <input type="button" value="返回" class="button align_right" onclick="gotoUrl('index.php?action=cake.showlist');" />
    </div>
</div>
{#include file="footer.tpl" #}
